<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>OpenXCP master: SourceParser Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="openXCP.ico"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OpenXCP master
   &#160;<span id="projectnumber">version 0.1</span>
   </div>
   <div id="projectbrief">by Michael Wolf, master thesis, 2018</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_source_parser.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="class_source_parser-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SourceParser Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for SourceParser:</div>
<div class="dyncontent">
<div class="center"><img src="class_source_parser__coll__graph.png" border="0" usemap="#_source_parser_coll__map" alt="Collaboration graph"/></div>
<map name="_source_parser_coll__map" id="_source_parser_coll__map">
<area shape="rect" id="node2" href="class_source_parse_characteristic.html" title="SourceParseCharacteristic" alt="" coords="349,55,528,81"/>
<area shape="rect" id="node3" href="class_source_parser_obj.html" title="SourceParserObj" alt="" coords="167,55,288,81"/>
<area shape="rect" id="node8" href="class_source_parse_measurement.html" title="SourceParseMeasurement" alt="" coords="351,105,527,132"/>
<area shape="rect" id="node6" href="struct_source_parser_1_1_comment_found_lines.html" title="SourceParser::CommentFound\lLines" alt="" coords="337,222,540,263"/>
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_source_parser_1_1_comment_found_lines.html">CommentFoundLines</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_source_parser_1_1_token_value.html">TokenValue</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2bf545fab69928d341cd5a68ae996a41"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2bf545fab69928d341cd5a68ae996a41"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SourceParser</b> (const string &amp;srcFilePathName)</td></tr>
<tr class="separator:a2bf545fab69928d341cd5a68ae996a41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05eb66fadd73d3979d32c8bf2a50838a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a05eb66fadd73d3979d32c8bf2a50838a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>parse</b> ()</td></tr>
<tr class="separator:a05eb66fadd73d3979d32c8bf2a50838a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67246c31f2ef1b6fd304d312332a0676"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67246c31f2ef1b6fd304d312332a0676"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setVariablesToLookUp</b> (const shared_ptr&lt; <a class="el" href="class_parse_result_base.html">ParseResultBase</a> &gt; &amp;var)</td></tr>
<tr class="separator:a67246c31f2ef1b6fd304d312332a0676"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a3a61cc22818d24cb24eb883fbab73438"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a61cc22818d24cb24eb883fbab73438"></a>
std::ifstream &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>gotoLine</b> (std::ifstream &amp;file, uint32_t num)</td></tr>
<tr class="separator:a3a61cc22818d24cb24eb883fbab73438"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5eb13658b2791232e4e54a07edbe519"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad5eb13658b2791232e4e54a07edbe519"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>processLine</b> (const string &amp;line, int lineNr, <a class="el" href="class_parse_result_base.html">ParseResultBase</a> &amp;variableToLookUp)</td></tr>
<tr class="separator:ad5eb13658b2791232e4e54a07edbe519"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c75dc4d0523e8b29101e14adbc338e7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0c75dc4d0523e8b29101e14adbc338e7"></a>
<a class="el" href="struct_source_parser_1_1_token_value.html">TokenValue</a>&#160;</td><td class="memItemRight" valign="bottom"><b>readTokens</b> (const string &amp;line)</td></tr>
<tr class="separator:a0c75dc4d0523e8b29101e14adbc338e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b371a5415c6784ce2f45fba8ec15472"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b371a5415c6784ce2f45fba8ec15472"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>saveTokensValueTemporarily</b> (const <a class="el" href="struct_source_parser_1_1_token_value.html">TokenValue</a> &amp;tokenValue)</td></tr>
<tr class="separator:a0b371a5415c6784ce2f45fba8ec15472"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a884ed17faff87f3f7451fa6d38059bbb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a884ed17faff87f3f7451fa6d38059bbb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>saveTokensValueToFoundVariable</b> (<a class="el" href="class_parse_result_base.html">ParseResultBase</a> &amp;foundVar)</td></tr>
<tr class="separator:a884ed17faff87f3f7451fa6d38059bbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43c902d9d6f47f421ca1c885ddf1be36"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a43c902d9d6f47f421ca1c885ddf1be36"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>resetProcessLineParser</b> ()</td></tr>
<tr class="separator:a43c902d9d6f47f421ca1c885ddf1be36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa96fbd97e027f8bd4b3f9f073b0688fa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa96fbd97e027f8bd4b3f9f073b0688fa"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>resetTemporaryComment</b> ()</td></tr>
<tr class="separator:aa96fbd97e027f8bd4b3f9f073b0688fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1937d5fad1cd796976941e978366f8b5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1937d5fad1cd796976941e978366f8b5"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isTokenInLine</b> (const TokenId &amp;tokenId, const string &amp;line)</td></tr>
<tr class="separator:a1937d5fad1cd796976941e978366f8b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b0d4d08ccd1fae101af49d5b5ace6be"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9b0d4d08ccd1fae101af49d5b5ace6be"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><b>getValueOfCommentLine</b> (const string &amp;line)</td></tr>
<tr class="separator:a9b0d4d08ccd1fae101af49d5b5ace6be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d6cf1ed5f5e5064b0fcb97d6ec87e62"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5d6cf1ed5f5e5064b0fcb97d6ec87e62"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isLineInIgnoreList</b> (int lineNr)</td></tr>
<tr class="separator:a5d6cf1ed5f5e5064b0fcb97d6ec87e62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e10df0c7394a13c0b836812040201cc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6e10df0c7394a13c0b836812040201cc"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addCommentLinesToIgnoreList</b> ()</td></tr>
<tr class="separator:a6e10df0c7394a13c0b836812040201cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae33e7337791c11f08d938a8ac7a6891"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aae33e7337791c11f08d938a8ac7a6891"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>convertValueToBool</b> (const string &amp;value)  throw (std::invalid_argument)</td></tr>
<tr class="separator:aae33e7337791c11f08d938a8ac7a6891"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d1752953e7ce05ef4669d299f691632"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_source_parser.html#a9d1752953e7ce05ef4669d299f691632">isNumberFloat</a> (const string &amp;line)</td></tr>
<tr class="memdesc:a9d1752953e7ce05ef4669d299f691632"><td class="mdescLeft">&#160;</td><td class="mdescRight">isNumberFloat Valid input: "123", "123.", "123.1", "123.123" and negative numbers  <a href="#a9d1752953e7ce05ef4669d299f691632">More...</a><br /></td></tr>
<tr class="separator:a9d1752953e7ce05ef4669d299f691632"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b004da1e05e9c04dd05bffbd6cc2b73"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3b004da1e05e9c04dd05bffbd6cc2b73"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isNumberInt</b> (const string &amp;line)</td></tr>
<tr class="separator:a3b004da1e05e9c04dd05bffbd6cc2b73"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:aa7982851ee27e5d00130f3736eb6c790"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa7982851ee27e5d00130f3736eb6c790"></a>
SourceParserStates&#160;</td><td class="memItemRight" valign="bottom"><b>state</b></td></tr>
<tr class="separator:aa7982851ee27e5d00130f3736eb6c790"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65b0c996ccb319a063eff848e72fdc8b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a65b0c996ccb319a063eff848e72fdc8b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isValidCommentFound</b></td></tr>
<tr class="separator:a65b0c996ccb319a063eff848e72fdc8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc9c970c29831ffedc8adf7f18d276e1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acc9c970c29831ffedc8adf7f18d276e1"></a>
<a class="el" href="struct_source_parser_1_1_comment_found_lines.html">CommentFoundLines</a>&#160;</td><td class="memItemRight" valign="bottom"><b>commentFoundLines</b></td></tr>
<tr class="separator:acc9c970c29831ffedc8adf7f18d276e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02d1e595db10d188270ebdbbbc01c5aa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a02d1e595db10d188270ebdbbbc01c5aa"></a>
std::unordered_set&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>linesToIgnore</b></td></tr>
<tr class="separator:a02d1e595db10d188270ebdbbbc01c5aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa46b854308e6e4ed64187addafea8592"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa46b854308e6e4ed64187addafea8592"></a>
vector&lt; shared_ptr&lt; <a class="el" href="class_parse_result_base.html">ParseResultBase</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>variablesToLookUp</b></td></tr>
<tr class="separator:aa46b854308e6e4ed64187addafea8592"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb47a72a87591dc4055337a0b9a699fd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acb47a72a87591dc4055337a0b9a699fd"></a>
map&lt; const TokenId, const string &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>tokens</b></td></tr>
<tr class="separator:acb47a72a87591dc4055337a0b9a699fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f919a464e70c4f821aab25516a8f9b3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9f919a464e70c4f821aab25516a8f9b3"></a>
<a class="el" href="class_source_parser_obj.html">SourceParserObj</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>pFoundCommentType</b></td></tr>
<tr class="separator:a9f919a464e70c4f821aab25516a8f9b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e888c47e83fa3d47c6513e353da7ee4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4e888c47e83fa3d47c6513e353da7ee4"></a>
<a class="el" href="class_source_parse_measurement.html">SourceParseMeasurement</a>&#160;</td><td class="memItemRight" valign="bottom"><b>tmpMeasurement</b></td></tr>
<tr class="separator:a4e888c47e83fa3d47c6513e353da7ee4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad86c5c21436586725ebbf90206be9b32"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad86c5c21436586725ebbf90206be9b32"></a>
<a class="el" href="class_source_parse_characteristic.html">SourceParseCharacteristic</a>&#160;</td><td class="memItemRight" valign="bottom"><b>tmpCharacteristic</b></td></tr>
<tr class="separator:ad86c5c21436586725ebbf90206be9b32"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="sourceparser_8h_source.html#l00035">35</a> of file <a class="el" href="sourceparser_8h_source.html">sourceparser.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a9d1752953e7ce05ef4669d299f691632"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool SourceParser::isNumberFloat </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>line</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>isNumberFloat Valid input: "123", "123.", "123.1", "123.123" and negative numbers </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">line</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>isFloat </dd></dl>

<p>Definition at line <a class="el" href="sourceparser_8cpp_source.html#l00279">279</a> of file <a class="el" href="sourceparser_8cpp_source.html">sourceparser.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/shreaker/Studium/Masterarbeit/git/Open-XCP/Master/Qt_Open_XCP/parser/<a class="el" href="sourceparser_8h_source.html">sourceparser.h</a></li>
<li>/home/shreaker/Studium/Masterarbeit/git/Open-XCP/Master/Qt_Open_XCP/parser/<a class="el" href="sourceparser_8cpp_source.html">sourceparser.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_source_parser.html">SourceParser</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
